package com.cloud.mall.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Author: 梁二东
 * @Date: 2024/11/24 11:55
 * @Description:
 **/
@Configuration
@ConfigurationProperties(prefix = "cloud-mall.ip.config")
@Data
@RefreshScope
public class IPProperties {

    /**
     * whiteList: 白名单列表中IP免除校验
     */
    private List<String> whiteList;

    /**
     * blackList: 黑名单列表中ip禁止访问
     */
    private List<String> blackList;

}
